<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>添加商品信息</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/static/css/font.css">
        <link rel="stylesheet" href="/static/css/xadmin.css">
		<link rel="stylesheet" href="/static/css/table.css">
        <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/static/js/xadmin.js"></script>
		<script type="text/javascript" src="/static/js/jquery.min.js"></script>
		<script type="text/javascript" src="/static/js/jquery.form.js"></script>
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="x-nav">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <form class="layui-form" id="signupForm" action="{:url('shop/goods/addgoods')}" method="post">
					<div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品编码</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									  <label class="layui-form-label">
										  <span class="x-red">*</span>产品编码
									  </label>
									  <div class="layui-input-inline">
										  <input type="text" name="goods_sn" required="" lay-verify="required" class="layui-input" />
									  </div>
									  <div class="layui-form-mid layui-word-aux">
										  <span class="x-red">*</span>商品唯一标识
									  </div>
								  </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品信息</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品名称</label>
									  <div class="layui-input-inline">
										<input type="text" name="goods_name" id="goods_name" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">产品简称</label>
									  <div class="layui-input-inline">
										<input type="text" name="abbreviation" class="layui-input" />
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品分类</label>
									  <div class="layui-input-inline">
											<select name="category_id" lay-filter="zcate">
												<option value="">请选择产品分类</option>
												{volist name="fcat" id="vo"}
												<option value="{$vo.category_id}">{$vo.category_name}</option>
												{/volist}
											</select>
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">产品子分类</label>
									  <div class="layui-input-inline">
											<select name="cat_id" id="cat_id" lay-filter="bute">
												<option value="">请选择产品子分类</option>
											</select>
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品品牌</label>
									  <div class="layui-input-inline">
											<select name="brand_name" id="brand_name" lay-filter="attribute">
												<option value="">请选择产品品牌</option>
											</select>
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">内存</label>
									  <div class="layui-input-inline">
											<select name="memory_name" id="memory_name" lay-filter="attribute">
												<option value="">请选择产品内存</option>
											</select>
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品型号</label>
									  <div class="layui-input-inline">
											<input type="text" name="marker" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">属性</label>
									  <div class="layui-input-inline">
											<select name="attribute_name" id="attribute_name" lay-filter="attribute">
												<option value="">请选择产品属性</option>
											</select>
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品颜色</label>
									  <div class="layui-input-inline">
											<select name="colour_name" id="colour_name" lay-filter="attribute">
												<option value="">请选择产品颜色</option>
											</select>
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">单位</label>
									  <div class="layui-input-inline">
											<select name="unit">
												<option value="">请选择单位</option>
												{volist name="news" id="vo"}
												<option value="{$vo.news_name}">{$vo.news_name}</option>
												{/volist}
											</select>
									  </div>
									</div>
								 </div>
								 <div class="layui-form-item layui-form-text">
									<label for="desc" class="layui-form-label">产品描述</label>
									<div class="layui-input-block">
										<textarea placeholder="请输入内容" name="describes" class="layui-textarea"></textarea>
									</div>
								</div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品条形码</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									  <label class="layui-form-label">产品条形码</label>
									  <div class="layui-input-inline">
										  <input type="text" name="bar_code" class="layui-input" />
									  </div>
								  </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品价格</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">零售单价</label>
									  <div class="layui-input-inline">
										<input type="text" name="selling_price" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">批发价格</label>
									  <div class="layui-input-inline">
										<input type="text" name="trade_price" class="layui-input" />
									  </div>
									</div>
								 </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品提成</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">盈利提成</label>
									  <div class="layui-input-inline">
										<input type="text" name="profit_bonus" class="layui-input" />
									  </div>
									  <div class="layui-form-mid">%</div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label">营业额提成</label>
									  <div class="layui-input-inline">
										<input type="text" name="turnover_bonus" class="layui-input" />
									  </div>
									  <div class="layui-form-mid">%</div>
									</div>
								 </div>
							  </div>
							</div>
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  <ul class="order_table">
								<li>产品预警</li>
							  </ul>
							  <div class="layui-tab-content">
								 <div class="layui-form-item">
									<div class="layui-inline">
									  <label class="layui-form-label">产品预警</label>
									  <div class="layui-input-inline">
										<input type="text" name="warning_number" class="layui-input" />
									  </div>
									</div>
									<div class="layui-inline">
									  <label class="layui-form-label" style="width:100px;">过期预警（天）</label>
									  <div class="layui-input-inline">
										<input type="text" name="warning_overdue" class="layui-input" />
									  </div>
									</div>
								 </div>
							  </div>
							</div>
							<div class="layui-tab-content">
								<div class="layui-form-item">
									  <button  class="layui-btn" lay-filter="add" lay-submit="">增加</button>
								  </div>
							</div>
                        </div>
                    </div>
					</form>
                </div>
            </div>
        </div> 
		<script type="text/javascript" src="/static/customized/shop/addgoods.js"></script>
    </body>
</html>